-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove VotesERC20 from AzoriusTxBuilder #1645
Conversation
✅ Deploy Preview for fractal-dev ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
ffa9a66
to
e5fab96
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Left a question but otherwise lgtm!
contract: Contract, | ||
method: string, | ||
params: any[], | ||
const finishBuildingConractCall = ( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
typo: finishBuildingConractCall
-> finishBuildingContractCall
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
gah. i almost just want to leave it as is for now, because fixing this will cause me to need to rebase all of the branches above this one 😅
i plan on consolidating this back into one function anyway, once the the ethers-style function can be removed. I'll deal with it then.
@@ -184,6 +184,45 @@ export const buildContractCall = ( | |||
); | |||
}; | |||
|
|||
export const buildContractCall = ( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this meant to go away at some point? Noticing the -viem
variant below.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure is!
f0c3317
to
0829528
Compare
e5fab96
to
a919284
Compare
0829528
to
a2f5908
Compare
a919284
to
ede0aa4
Compare
ede0aa4
to
1f0e490
Compare
a2f5908
to
f907412
Compare
if (!this.predictedTokenAddress) { | ||
return; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this defined when existing token is used for DAO Creation? Ie set to the existing token's address
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TBH not sure. I assumed (perhaps incorrectly?) that this check here was safe, because if you look at the old code on line 561, we were forcing the value to be valid (this.predictedTokenAddress!
).
I could just put that !
back in on new line 574 and remove this conditional early exit, but I don't like !
in typescript.
I suppose I should go and manually test this out, huh
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In the case when a user brings their own token to new Azorius DAO creation, this.predictedTokenAddress
gets set to that existing token address. So, this function executes as expected. Thanks for the call out here.
…stxbuilder Remove VotesERC20 from AzoriusTxBuilder
Please review and merge #1644 first.